﻿using Core.Context;
using Core.IServices;
using Core.Messages;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Core.Factories
{
    public class SettingsFactory : ISettingsFactory
    {
        private readonly IReadSettingService settingService;
        
        public SettingsFactory(IReadSettingService settingService)
        {
            this.settingService = settingService;
        }

        public IAppSettings GetInstance()
        {
            return settingService.GetAll();        
        }
    }
}
